'Declaration
<ExtensionAttribute()> Public Overloads Shared Sub SetBinding(Of T)( _ ByVal target As FrameworkElement, _ ByVal dp As DependencyProperty, _ ByVal source As T, _ ByVal expr As Expression(Of Func(Of T,Object)) _ )
[Extension()] public static void SetBinding<T>( FrameworkElement target, DependencyProperty dp, T source, Expression<Func<T,object>> expr )
Parameters
- target
- The target.
- dp
- The dependency property which will be set.
- source
- The source.
- expr
- Expression that returns a property of the source object.
Type Parameters
- T
- Type of the source